package cn.kgc.ubagnet.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class CouponExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CouponExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andUseridIsNull() {
            addCriterion("userid is null");
            return (Criteria) this;
        }

        public Criteria andUseridIsNotNull() {
            addCriterion("userid is not null");
            return (Criteria) this;
        }

        public Criteria andUseridEqualTo(Integer value) {
            addCriterion("userid =", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotEqualTo(Integer value) {
            addCriterion("userid <>", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThan(Integer value) {
            addCriterion("userid >", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThanOrEqualTo(Integer value) {
            addCriterion("userid >=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThan(Integer value) {
            addCriterion("userid <", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThanOrEqualTo(Integer value) {
            addCriterion("userid <=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridIn(List<Integer> values) {
            addCriterion("userid in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotIn(List<Integer> values) {
            addCriterion("userid not in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridBetween(Integer value1, Integer value2) {
            addCriterion("userid between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotBetween(Integer value1, Integer value2) {
            addCriterion("userid not between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andWorthIsNull() {
            addCriterion("worth is null");
            return (Criteria) this;
        }

        public Criteria andWorthIsNotNull() {
            addCriterion("worth is not null");
            return (Criteria) this;
        }

        public Criteria andWorthEqualTo(Double value) {
            addCriterion("worth =", value, "worth");
            return (Criteria) this;
        }

        public Criteria andWorthNotEqualTo(Double value) {
            addCriterion("worth <>", value, "worth");
            return (Criteria) this;
        }

        public Criteria andWorthGreaterThan(Double value) {
            addCriterion("worth >", value, "worth");
            return (Criteria) this;
        }

        public Criteria andWorthGreaterThanOrEqualTo(Double value) {
            addCriterion("worth >=", value, "worth");
            return (Criteria) this;
        }

        public Criteria andWorthLessThan(Double value) {
            addCriterion("worth <", value, "worth");
            return (Criteria) this;
        }

        public Criteria andWorthLessThanOrEqualTo(Double value) {
            addCriterion("worth <=", value, "worth");
            return (Criteria) this;
        }

        public Criteria andWorthIn(List<Double> values) {
            addCriterion("worth in", values, "worth");
            return (Criteria) this;
        }

        public Criteria andWorthNotIn(List<Double> values) {
            addCriterion("worth not in", values, "worth");
            return (Criteria) this;
        }

        public Criteria andWorthBetween(Double value1, Double value2) {
            addCriterion("worth between", value1, value2, "worth");
            return (Criteria) this;
        }

        public Criteria andWorthNotBetween(Double value1, Double value2) {
            addCriterion("worth not between", value1, value2, "worth");
            return (Criteria) this;
        }

        public Criteria andStartdateIsNull() {
            addCriterion("startDate is null");
            return (Criteria) this;
        }

        public Criteria andStartdateIsNotNull() {
            addCriterion("startDate is not null");
            return (Criteria) this;
        }

        public Criteria andStartdateEqualTo(Date value) {
            addCriterion("startDate =", value, "startdate");
            return (Criteria) this;
        }

        public Criteria andStartdateNotEqualTo(Date value) {
            addCriterion("startDate <>", value, "startdate");
            return (Criteria) this;
        }

        public Criteria andStartdateGreaterThan(Date value) {
            addCriterion("startDate >", value, "startdate");
            return (Criteria) this;
        }

        public Criteria andStartdateGreaterThanOrEqualTo(Date value) {
            addCriterion("startDate >=", value, "startdate");
            return (Criteria) this;
        }

        public Criteria andStartdateLessThan(Date value) {
            addCriterion("startDate <", value, "startdate");
            return (Criteria) this;
        }

        public Criteria andStartdateLessThanOrEqualTo(Date value) {
            addCriterion("startDate <=", value, "startdate");
            return (Criteria) this;
        }

        public Criteria andStartdateIn(List<Date> values) {
            addCriterion("startDate in", values, "startdate");
            return (Criteria) this;
        }

        public Criteria andStartdateNotIn(List<Date> values) {
            addCriterion("startDate not in", values, "startdate");
            return (Criteria) this;
        }

        public Criteria andStartdateBetween(Date value1, Date value2) {
            addCriterion("startDate between", value1, value2, "startdate");
            return (Criteria) this;
        }

        public Criteria andStartdateNotBetween(Date value1, Date value2) {
            addCriterion("startDate not between", value1, value2, "startdate");
            return (Criteria) this;
        }

        public Criteria andEnddateIsNull() {
            addCriterion("endDate is null");
            return (Criteria) this;
        }

        public Criteria andEnddateIsNotNull() {
            addCriterion("endDate is not null");
            return (Criteria) this;
        }

        public Criteria andEnddateEqualTo(Date value) {
            addCriterion("endDate =", value, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateNotEqualTo(Date value) {
            addCriterion("endDate <>", value, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateGreaterThan(Date value) {
            addCriterion("endDate >", value, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateGreaterThanOrEqualTo(Date value) {
            addCriterion("endDate >=", value, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateLessThan(Date value) {
            addCriterion("endDate <", value, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateLessThanOrEqualTo(Date value) {
            addCriterion("endDate <=", value, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateIn(List<Date> values) {
            addCriterion("endDate in", values, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateNotIn(List<Date> values) {
            addCriterion("endDate not in", values, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateBetween(Date value1, Date value2) {
            addCriterion("endDate between", value1, value2, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateNotBetween(Date value1, Date value2) {
            addCriterion("endDate not between", value1, value2, "enddate");
            return (Criteria) this;
        }

        public Criteria andJuanhaoIsNull() {
            addCriterion("juanhao is null");
            return (Criteria) this;
        }

        public Criteria andJuanhaoIsNotNull() {
            addCriterion("juanhao is not null");
            return (Criteria) this;
        }

        public Criteria andJuanhaoEqualTo(String value) {
            addCriterion("juanhao =", value, "juanhao");
            return (Criteria) this;
        }

        public Criteria andJuanhaoNotEqualTo(String value) {
            addCriterion("juanhao <>", value, "juanhao");
            return (Criteria) this;
        }

        public Criteria andJuanhaoGreaterThan(String value) {
            addCriterion("juanhao >", value, "juanhao");
            return (Criteria) this;
        }

        public Criteria andJuanhaoGreaterThanOrEqualTo(String value) {
            addCriterion("juanhao >=", value, "juanhao");
            return (Criteria) this;
        }

        public Criteria andJuanhaoLessThan(String value) {
            addCriterion("juanhao <", value, "juanhao");
            return (Criteria) this;
        }

        public Criteria andJuanhaoLessThanOrEqualTo(String value) {
            addCriterion("juanhao <=", value, "juanhao");
            return (Criteria) this;
        }

        public Criteria andJuanhaoLike(String value) {
            addCriterion("juanhao like", value, "juanhao");
            return (Criteria) this;
        }

        public Criteria andJuanhaoNotLike(String value) {
            addCriterion("juanhao not like", value, "juanhao");
            return (Criteria) this;
        }

        public Criteria andJuanhaoIn(List<String> values) {
            addCriterion("juanhao in", values, "juanhao");
            return (Criteria) this;
        }

        public Criteria andJuanhaoNotIn(List<String> values) {
            addCriterion("juanhao not in", values, "juanhao");
            return (Criteria) this;
        }

        public Criteria andJuanhaoBetween(String value1, String value2) {
            addCriterion("juanhao between", value1, value2, "juanhao");
            return (Criteria) this;
        }

        public Criteria andJuanhaoNotBetween(String value1, String value2) {
            addCriterion("juanhao not between", value1, value2, "juanhao");
            return (Criteria) this;
        }

        public Criteria andGuizeIsNull() {
            addCriterion("guize is null");
            return (Criteria) this;
        }

        public Criteria andGuizeIsNotNull() {
            addCriterion("guize is not null");
            return (Criteria) this;
        }

        public Criteria andGuizeEqualTo(String value) {
            addCriterion("guize =", value, "guize");
            return (Criteria) this;
        }

        public Criteria andGuizeNotEqualTo(String value) {
            addCriterion("guize <>", value, "guize");
            return (Criteria) this;
        }

        public Criteria andGuizeGreaterThan(String value) {
            addCriterion("guize >", value, "guize");
            return (Criteria) this;
        }

        public Criteria andGuizeGreaterThanOrEqualTo(String value) {
            addCriterion("guize >=", value, "guize");
            return (Criteria) this;
        }

        public Criteria andGuizeLessThan(String value) {
            addCriterion("guize <", value, "guize");
            return (Criteria) this;
        }

        public Criteria andGuizeLessThanOrEqualTo(String value) {
            addCriterion("guize <=", value, "guize");
            return (Criteria) this;
        }

        public Criteria andGuizeLike(String value) {
            addCriterion("guize like", value, "guize");
            return (Criteria) this;
        }

        public Criteria andGuizeNotLike(String value) {
            addCriterion("guize not like", value, "guize");
            return (Criteria) this;
        }

        public Criteria andGuizeIn(List<String> values) {
            addCriterion("guize in", values, "guize");
            return (Criteria) this;
        }

        public Criteria andGuizeNotIn(List<String> values) {
            addCriterion("guize not in", values, "guize");
            return (Criteria) this;
        }

        public Criteria andGuizeBetween(String value1, String value2) {
            addCriterion("guize between", value1, value2, "guize");
            return (Criteria) this;
        }

        public Criteria andGuizeNotBetween(String value1, String value2) {
            addCriterion("guize not between", value1, value2, "guize");
            return (Criteria) this;
        }

        public Criteria andIsoverdueIsNull() {
            addCriterion("isOverdue is null");
            return (Criteria) this;
        }

        public Criteria andIsoverdueIsNotNull() {
            addCriterion("isOverdue is not null");
            return (Criteria) this;
        }

        public Criteria andIsoverdueEqualTo(Integer value) {
            addCriterion("isOverdue =", value, "isoverdue");
            return (Criteria) this;
        }

        public Criteria andIsoverdueNotEqualTo(Integer value) {
            addCriterion("isOverdue <>", value, "isoverdue");
            return (Criteria) this;
        }

        public Criteria andIsoverdueGreaterThan(Integer value) {
            addCriterion("isOverdue >", value, "isoverdue");
            return (Criteria) this;
        }

        public Criteria andIsoverdueGreaterThanOrEqualTo(Integer value) {
            addCriterion("isOverdue >=", value, "isoverdue");
            return (Criteria) this;
        }

        public Criteria andIsoverdueLessThan(Integer value) {
            addCriterion("isOverdue <", value, "isoverdue");
            return (Criteria) this;
        }

        public Criteria andIsoverdueLessThanOrEqualTo(Integer value) {
            addCriterion("isOverdue <=", value, "isoverdue");
            return (Criteria) this;
        }

        public Criteria andIsoverdueIn(List<Integer> values) {
            addCriterion("isOverdue in", values, "isoverdue");
            return (Criteria) this;
        }

        public Criteria andIsoverdueNotIn(List<Integer> values) {
            addCriterion("isOverdue not in", values, "isoverdue");
            return (Criteria) this;
        }

        public Criteria andIsoverdueBetween(Integer value1, Integer value2) {
            addCriterion("isOverdue between", value1, value2, "isoverdue");
            return (Criteria) this;
        }

        public Criteria andIsoverdueNotBetween(Integer value1, Integer value2) {
            addCriterion("isOverdue not between", value1, value2, "isoverdue");
            return (Criteria) this;
        }

        public Criteria andScrea1IsNull() {
            addCriterion("screa1 is null");
            return (Criteria) this;
        }

        public Criteria andScrea1IsNotNull() {
            addCriterion("screa1 is not null");
            return (Criteria) this;
        }

        public Criteria andScrea1EqualTo(String value) {
            addCriterion("screa1 =", value, "screa1");
            return (Criteria) this;
        }

        public Criteria andScrea1NotEqualTo(String value) {
            addCriterion("screa1 <>", value, "screa1");
            return (Criteria) this;
        }

        public Criteria andScrea1GreaterThan(String value) {
            addCriterion("screa1 >", value, "screa1");
            return (Criteria) this;
        }

        public Criteria andScrea1GreaterThanOrEqualTo(String value) {
            addCriterion("screa1 >=", value, "screa1");
            return (Criteria) this;
        }

        public Criteria andScrea1LessThan(String value) {
            addCriterion("screa1 <", value, "screa1");
            return (Criteria) this;
        }

        public Criteria andScrea1LessThanOrEqualTo(String value) {
            addCriterion("screa1 <=", value, "screa1");
            return (Criteria) this;
        }

        public Criteria andScrea1Like(String value) {
            addCriterion("screa1 like", value, "screa1");
            return (Criteria) this;
        }

        public Criteria andScrea1NotLike(String value) {
            addCriterion("screa1 not like", value, "screa1");
            return (Criteria) this;
        }

        public Criteria andScrea1In(List<String> values) {
            addCriterion("screa1 in", values, "screa1");
            return (Criteria) this;
        }

        public Criteria andScrea1NotIn(List<String> values) {
            addCriterion("screa1 not in", values, "screa1");
            return (Criteria) this;
        }

        public Criteria andScrea1Between(String value1, String value2) {
            addCriterion("screa1 between", value1, value2, "screa1");
            return (Criteria) this;
        }

        public Criteria andScrea1NotBetween(String value1, String value2) {
            addCriterion("screa1 not between", value1, value2, "screa1");
            return (Criteria) this;
        }

        public Criteria andScrea2IsNull() {
            addCriterion("screa2 is null");
            return (Criteria) this;
        }

        public Criteria andScrea2IsNotNull() {
            addCriterion("screa2 is not null");
            return (Criteria) this;
        }

        public Criteria andScrea2EqualTo(String value) {
            addCriterion("screa2 =", value, "screa2");
            return (Criteria) this;
        }

        public Criteria andScrea2NotEqualTo(String value) {
            addCriterion("screa2 <>", value, "screa2");
            return (Criteria) this;
        }

        public Criteria andScrea2GreaterThan(String value) {
            addCriterion("screa2 >", value, "screa2");
            return (Criteria) this;
        }

        public Criteria andScrea2GreaterThanOrEqualTo(String value) {
            addCriterion("screa2 >=", value, "screa2");
            return (Criteria) this;
        }

        public Criteria andScrea2LessThan(String value) {
            addCriterion("screa2 <", value, "screa2");
            return (Criteria) this;
        }

        public Criteria andScrea2LessThanOrEqualTo(String value) {
            addCriterion("screa2 <=", value, "screa2");
            return (Criteria) this;
        }

        public Criteria andScrea2Like(String value) {
            addCriterion("screa2 like", value, "screa2");
            return (Criteria) this;
        }

        public Criteria andScrea2NotLike(String value) {
            addCriterion("screa2 not like", value, "screa2");
            return (Criteria) this;
        }

        public Criteria andScrea2In(List<String> values) {
            addCriterion("screa2 in", values, "screa2");
            return (Criteria) this;
        }

        public Criteria andScrea2NotIn(List<String> values) {
            addCriterion("screa2 not in", values, "screa2");
            return (Criteria) this;
        }

        public Criteria andScrea2Between(String value1, String value2) {
            addCriterion("screa2 between", value1, value2, "screa2");
            return (Criteria) this;
        }

        public Criteria andScrea2NotBetween(String value1, String value2) {
            addCriterion("screa2 not between", value1, value2, "screa2");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}